package constants;

/** The enum with all the wall types of the brick breaker game.
 * @author Team 1
 *
 */
public enum WallType {
	UPPERLEFTWALL, UPPERRIGHTWALL, LEFTWALL, UPWALL, RIGHTWALL;
	
	public static WallType intToWallType(int value) {
		switch(value) {
		case 0:
			return WallType.UPPERLEFTWALL;
		case 1:
			return WallType.UPPERRIGHTWALL;
		case 2:
			return WallType.LEFTWALL;
		case 3:
			return WallType.UPWALL;
		default:
			return WallType.RIGHTWALL;
		}
	}
	
	public Integer wallTypeToInteger() {
		switch(this) {
		case UPPERLEFTWALL:
			return 0;
		case UPPERRIGHTWALL:
			return 1;
		case LEFTWALL:
			return 2;
		case UPWALL:
			return 3;
		default:
			return 4;
		}
	}
}
